{
    "CN": "etcd",
    "hosts": [
    {% for host in range(0,groups['etcd']|length-1) %}
    {{ '"'~groups['etcd'][host]~'"'~"," }}
    {% endfor %}
    {{'"'~groups['etcd'][groups['etcd'] | length-1]~'"'}}
    ],
    "key": {
        "algo": "rsa",
        "size": 2048
    },
    "names": [
        {
            "C": "CN",
            "L": "Beijing",
            "ST": "Beijing"
        }
    ]
}